const express = require("express");
const authHandler = require('../router-handler/auth')
const expressJoi = require('@escook/express-joi')
const { reg_login_schema } = require('../scheme/user')
const router = express.Router()
router.post('/login', expressJoi(reg_login_schema), authHandler.loginHandler)
router.post('/register', expressJoi(reg_login_schema), authHandler.registerHandler)

module.exports = router
